package com.wenbo.wenbo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 租客信息表
* </p>
*
* @author ywb
* @since 2022-07-04
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_tenant")
public class Tenant extends Model<Tenant> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "房号")
    private String number;

    @ApiModelProperty(value = "租客姓名")
    private String name;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "房租")
    private Integer money;

    @ApiModelProperty(value = "水气")
    private Integer water;

    @ApiModelProperty(value = "入住时间")
    private LocalDate time;

    @ApiModelProperty(value = "上一次交电费底度")
    private Integer electric;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
